#ifndef __ASYCOP_H__
#define __ASYCOP_H__

#include <QObject>
#include "xmlHandle.h"
#include "shmcop.h"

class AsyCop : public QObject
{
	Q_OBJECT
public:
	AsyCop(QObject *parent = 0);
	~AsyCop();
	virtual int init();
	virtual int do_request(QString &cmd, QByteArray &arg);
	int send_request(QString &cmd, QByteArray &arg,shmDirection d);
	int do_timeout();
public:
	ShmCop *mShm;
	xmlHandle *mXml;
	QByteArray *mXmlData;	
public slots:
	void onDataReceived(const QByteArray &data);
private:

};

#endif //__ASYCOP_H__

